import { dynamic } from 'umi';
import React from 'react';
import PageLoading from '@/components/PageLoading';
import StepWizard from '@/components/StepWizard';

const LogPage = dynamic({
  loader: () => import('./LogPage'),
  loading: PageLoading,
});

const LogDetail = dynamic({
  loader: () => import('./LogDetail'),
  loading: PageLoading,
});

function Index() {
  return (
    <StepWizard isLazyMount>
      <LogPage />
      <LogDetail destroy />
    </StepWizard>
  );
}

export default Index;
